﻿using UnityEngine;
using System.Collections;

public class GUIForthegame : MonoBehaviour {
	public PlayerControler player;

	// Use this for initialization
	void OnGUI() {
		/*
		/*GUI.Box(new Rect(10,Screen.height-200,290,200), "Ghetto Controls");
		
		// Up Button
		if(GUI.RepeatButton(new Rect(115,Screen.height - 180,80,80), "^")) {
			player.MoveUp();
		}
		
		// Back Button
		if(GUI.RepeatButton(new Rect(115,Screen.height - 90,80,80), "v")) {
			player.MoveBack();
		}
		
		// Left Button
		if(GUI.RepeatButton(new Rect(20,Screen.height - 140,80,80), "<")) {
			player.MoveLeft();
		}
		
		// Right Button
		if(GUI.RepeatButton(new Rect(210,Screen.height - 140,80,80), ">")) {
			player.MoveRight();
		}
		
		//Jump Button
		if(GUI.Button (new Rect(Screen.width - 100, Screen.height - 90, 80,80), "Jump!")) {
			player.Jump(true);
		}*/
		//Reset Button
		/*
		 * This will be added once in-game menu is added.
		if (GUI.Button (new Rect(Screen.width - 90, 10, 80,80), "RESET!")) {
			int length = UnityEditor.EditorApplication.currentScene.Split ('/').Length;
			string filename = UnityEditor.EditorApplication.currentScene.Split ('/')[length-1];
			string file = filename.Split ('.')[0];
			Application.LoadLevel (file);
		}
		*/
		if (GUI.Button (new Rect(Screen.width - 90, 10, 80,80), "Menu")) {
			Application.LoadLevel ("MenuScene");
		}
	}
}
